package dmwr.bean;

import java.io.Serializable;

public class User implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;
	private String username;
	private byte[] passwordHash;
	private byte[] passwordSalt;
	private byte[] rememberHash;
	private byte[] rememberSalt;
	private Long created;

	public User(Long id, String username, byte[] passwordHash,
			byte[] passwordSalt, byte[] rememberHash, byte[] rememberSalt,
			Long created) {
		this.id = id;
		this.username = username;
		this.passwordHash = passwordHash;
		this.passwordSalt = passwordSalt;
		this.rememberHash = rememberHash;
		this.rememberSalt = rememberSalt;
		this.created = created;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public byte[] getPasswordHash() {
		return passwordHash;
	}

	public void setPasswordHash(byte[] passwordHash) {
		this.passwordHash = passwordHash;
	}

	public byte[] getPasswordSalt() {
		return passwordSalt;
	}

	public void setPasswordSalt(byte[] passwordSalt) {
		this.passwordSalt = passwordSalt;
	}

	public byte[] getRememberHash() {
		return rememberHash;
	}

	public void setRememberHash(byte[] rememberHash) {
		this.rememberHash = rememberHash;
	}

	public byte[] getRememberSalt() {
		return rememberSalt;
	}

	public void setRememberSalt(byte[] rememberSalt) {
		this.rememberSalt = rememberSalt;
	}

	public Long getCreated() {
		return created;
	}

	public void setCreated(Long created) {
		this.created = created;
	}

	@Override
	public String toString() {
		return "User(id=" + id + ",username=" + username + ",passwordHash="
				+ passwordHash + ",passwordSalt=" + passwordSalt + ",created="
				+ created + ")";
	}
}
